package com.shadow.ui.container.bottom
{
	import com.liseen.resource.ResourcePool;
	import com.shadow.dataentities.systemdata.BuildingEntity;
	import com.shadow.resourceConfig.ResourceConfig;
	import com.shadow.ui.container.bottom.base.BottomContainer;
	
	import flash.display.MovieClip;
	
	public class MyBottomContainer extends BottomContainer
	{
		private static var _instance:MyBottomContainer;
		public function MyBottomContainer(enforcer:SingletonEnforcer)
		{
			super();
		}
		
		public static function getInstance():MyBottomContainer
		{
			if (!_instance)
			{
				_instance = new MyBottomContainer(new SingletonEnforcer());
				_instance.initialize();
				_instance.addEvent();
				_instance.setLayout();
			}
			return _instance;
		}
		
		public function getBaseClip():MovieClip
		{
			return baseClip;
		}
		
		public function setBattleLayout():void
		{
			
		}
		
		public function tutorialStart():void
		{
			
		}
		
		
		private function initialize():void
		{
			var buildingId:uint;
			var building:BuildingEntity;
			var baseClipeDef:Class =  ResourcePool.getClass(GlobalContext.RESOURCE_PATH+ResourceConfig.UI_LIB_URL,"UIBottomClip") as Class;
			baseClip = new baseClipeDef() as MovieClip;
			
		}
		
		private function addEvent():void
		{
			
		}
		
		private function setLayout():void
		{
			if (!this.contains(baseClip))
			{
				addChild(baseClip);
				
			}
		}
	}
}
class SingletonEnforcer
{
	
}